package com.cy.controller;


import com.cy.entity.TRecord;
import com.cy.entity.User;
import com.cy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author : ChenYuna
 * @date : Created in 2020/8/5  10:32
 * @description:
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping
    public List<User> finaAll(){
        return userService.selectUsers();
    }

 }
